package co.edu.icesi.sca.common;

import java.io.Serializable;
import java.util.Observable;
import java.util.Observer;

public class Watcher extends Observable implements Observer, Serializable
{   

    private String message;
    
    @Override
    public void update( Observable o, Object arg )
    {
        message = (String) arg;
        setChanged( );
        notifyObservers(message);
        System.out.println("Updating Watcher...");
    }
    
    public String getMessage()
    {
        return message;
    }
    
}
